﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace System.Utility.UI
{


    public class StateManager<T>
    {
        public static T GetSessionState(SessionKey sessionKey)
        {
            return (T)HttpContext.Current.Session[sessionKey.ToString()];
        }
        public static void SetSessionState(SessionKey sessionKey, T data)
        {
            HttpContext.Current.Session[sessionKey.ToString()] = data;
        }
    }
}
